1 # Superposition of the oscillation of two undamped harmonic oscillators
5 coefficient.1(-1) -> -x10 # amplitude of 1
6 coefficient.2 -> omega1^2
7 coefficient.5(-1) -> -x20 # amplitude of 2
8 coefficient.6 -> omega2^2
11 iintegrate x1'' -> -x1'
14 cmultiply x1, omega1^2 -> omega1^2*x1
15 invert omega1^2*x1 -> -omega1^2*x1
16 assign -omega1^2*x1 -> x1''
20 iintegrate x2'' -> -x2'
23 cmultiply x2, omega2^2 -> omega2^2*x2
24 invert omega2^2*x2 -> -omega2^2*x2
25 assign -omega2^2*x2 -> x2''
29 isum x1, x2 -> -(x1+x2)
30 invert -(x1+x2) -> x1+x2